parametrized template

英 美
  • 参数化模板
    1. We write the template once, and the compiler instantiates the template for the type or types with which we use the template.
      我们只需编写一次模板,编译器将为使用模板的不同类型实例化模板。